<?php
/**
 * WPBakery Visual Composer Shortcodes settings
 *
 * @package VPBakeryVisualComposer
 *
 */


//$colors_arr = array(__("Grey", "js_composer") => "button_grey", __("Yellow", "js_composer") => "button_yellow", __("Green", "js_composer") => "button_green", __("Blue", "js_composer") => "button_blue", __("Red", "js_composer") => "button_red", __("Orange", "js_composer") => "button_orange");
$colors_arr = array(__("Grey", "js_composer") => "btn", __("Blue", "js_composer") => "btn-primary", __("Turquoise", "js_composer") => "btn-info", __("Green", "js_composer") => "btn-success", __("Orange", "js_composer") => "btn-warning", __("Red", "js_composer") => "btn-danger", __("Black", "js_composer") => "btn-inverse");

$size_arr = array(__("Regular size", "js_composer") => "wpb_regularsize", __("Large", "js_composer") => "btn-large", __("Small", "js_composer") => "btn-small", __("Mini", "js_composer") => "btn-mini");

$target_arr = array(__("Same window", "js_composer") => "_self", __("New window", "js_composer") => "_blank");

if( is_admin() ) {
        wp_enqueue_script('momjs', get_stylesheet_directory_uri().'/builder/js_composer/assets/js/mom.js', array('jquery'));
}
$options_categories = array();  
$options_categories_obj = get_categories('hide_empty=0');
foreach ($options_categories_obj as $category) {
$options_categories[$category->cat_ID] = $category->cat_name;
}

    $fonts = array(
        'Arial' => 'arial'    ,
        'Verdana, Geneva' => 'verdana'  ,
        'Trebuchet' => 'trebuchet',
        'Georgia' => 'georgia'  ,
        'Times New Roman' => 'times'    ,
        'Tahoma, Geneva' => 'tahoma'   ,
        'Palatino' => 'palatino' ,
        'Helvetica*' => 'helvetica',
        );

// news box One Column
wpb_map( array(
    "base"      => "news_box_default",
    "name"      => __("News Box - One Column", "js_composer"),
    "class"     => "",
    "icon"      => "icon-nb",
    "controls"  => "edit_popup_delete",
    "params"    => array(

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Select Category", "js_composer"),
            "param_name" => "cat",
        "value" => $options_categories ,
            "description" => __("select a category", "js_composer")
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Select Style", "js_composer"),
            "param_name" => "style",
        "value" => array (
                              __('Default News Box', 'js_composer') =>'default', 
                               __('The New One', 'js_composer')  => 'new'
                              ) ,
            "description" => __("select News box Style", "js_composer")
        ),
    )
) );

// News Box 2 Column
wpb_map( array(
    "base"      => "news_box_2cols",
    "name"      => __("News Box - Two Columns", "js_composer"),
    "class"     => "",
    "icon"      => "icon-nb2",
    "controls"  => "edit_popup_delete",
    "params"    => array(

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Select First Category", "js_composer"),
            "param_name" => "cat",
        "value" => $options_categories ,
            "description" => __("select a category", "js_composer")
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Select Second Category", "js_composer"),
            "param_name" => "cat2",
        "value" => $options_categories ,
            "description" => __("select a category", "js_composer")
        ),

  
    )
) );

// News In Pictures
wpb_map( array(
    "base"      => "news_in_pics",
    "name"      => __("News In Pictures", "js_composer"),
    "class"     => "",
    "icon"      => "icon-nip",
    "controls"  => "edit_popup_delete",
    "params"    => array(

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Title", "js_composer"),
            "param_name" => "title",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'category', 
                               __('Tag', 'js_composer')  => 'tagf'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "cat",
        "value" => $options_categories ,
            "description" => __("select a category", "js_composer")
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Tag", "js_composer"),
            "param_name" => "tag",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "count",
        "value" => range(1,99) ,
            "description" => __("select a category", "js_composer")
        ),
   

 
    )
) );

//news in tabs
wpb_map( array(
    "name"      => __("News In Tabs", "js_composer"),
    "base"      => "news_in_tabs",
    "controls"  => "edit_popup_delete",
    "class"     => "wpb_tabs not_dropable_in_third_level not-column-inherit",
    "icon"      => "icon-nit",
    "params"    => array(

//First Tab
        array(
            "type" => "head",
            "class" => "",
            "heading" => null,
            "param_name" => "tab1_head",
        "value" => __('First Tab', 'js_composer')
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Title", "js_composer"),
            "param_name" => "tab1_title",
        "value" => 'Tab 1'
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "tab1_display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'tab1_category', 
                               __('Tag', 'js_composer')  => 'tab1_tagf'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "tab1_cat",
        "value" => $options_categories ,
            "description" => __("select a category", "js_composer")
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Tag", "js_composer"),
            "param_name" => "tab1_tag",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "tab1_count",
        "value" => range(1,99) ,
        ),

//Second Tab

        array(
            "type" => "head",
            "class" => "",
            "heading" => null,
            "param_name" => "tab2_head",
        "value" => __('Second Tab', 'js_composer')
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Title", "js_composer"),
            "param_name" => "tab2_title",
        "value" => 'Tab 2'
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "tab2_display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'tab2_category', 
                               __('Tag', 'js_composer')  => 'tab2_tagf'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "tab2_cat",
        "value" => $options_categories ,
            "description" => __("select a category", "js_composer")
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Tag", "js_composer"),
            "param_name" => "tab2_tag",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "tab2_count",
        "value" => range(1,99) ,
        ),
//Third Tab
        array(
            "type" => "head",
            "class" => "",
            "heading" => null,
            "param_name" => "tab3_head",
        "value" => __('Third Tab', 'js_composer')
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Title", "js_composer"),
            "param_name" => "tab3_title",
        "value" => 'Tab 3'
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "tab3_display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'tab3_category', 
                               __('Tag', 'js_composer')  => 'tab3_tagf'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "tab3_cat",
        "value" => $options_categories ,
            "description" => __("select a category", "js_composer")
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Tag", "js_composer"),
            "param_name" => "tab3_tag",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "tab3_count",
        "value" => range(1,99) ,
        ),

//Fourth Tab
        array(
            "type" => "head",
            "class" => "",
            "heading" => null,
            "param_name" => "tab4_head",
        "value" => __('Fourth Tab', 'js_composer')
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Title", "js_composer"),
            "param_name" => "tab4_title",
        "value" => 'Tab 4'
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "tab4_display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'tab4_category', 
                               __('Tag', 'js_composer')  => 'tab4_tagf'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "tab4_cat",
        "value" => $options_categories ,
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Tag", "js_composer"),
            "param_name" => "tab4_tag",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "tab4_count",
        "value" => range(1,99) ,
        ),

//Fifth Tab
        array(
            "type" => "head",
            "class" => "",
            "heading" => null,
            "param_name" => "tab5_head",
        "value" => __('Fifth Tab', 'js_composer')
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Title", "js_composer"),
            "param_name" => "tab5_title",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "tab5_display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'tab5_category', 
                               __('Tag', 'js_composer')  => 'tab5_tagf'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "tab5_cat",
        "value" => $options_categories ,
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Tag", "js_composer"),
            "param_name" => "tab5_tag",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "tab5_count",
        "value" => range(1,99) ,
        ),

//Sixth Tab
        array(
            "type" => "head",
            "class" => "",
            "heading" => null,
            "param_name" => "tab6_head",
        "value" => __('Sixth Tab', 'js_composer')
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Title", "js_composer"),
            "param_name" => "tab6_title",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "tab6_display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'tab6_category', 
                               __('Tag', 'js_composer')  => 'tab6_tagf'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "tab6_cat",
        "value" => $options_categories ,
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Tag", "js_composer"),
            "param_name" => "tab6_tag",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "tab6_count",
        "value" => range(1,99) ,
        ),
 
 //Seventh Tab
        array(
            "type" => "head",
            "class" => "",
            "heading" => null,
            "param_name" => "tab7_head",
        "value" => __('Seventh Tab', 'js_composer')
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Title", "js_composer"),
            "param_name" => "tab7_title",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "tab7_display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'tab7_category', 
                               __('Tag', 'js_composer')  => 'tab7_tagf'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "tab7_cat",
        "value" => $options_categories ,
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Tag", "js_composer"),
            "param_name" => "tab7_tag",
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "tab7_count",
        "value" => range(1,99) ,
        ),  
    ),
 
  
) );
//Feature Slider 
wpb_map( array(
    "name"      => __("Feature Slider", "js_composer"),
    "base"      => "mom_feature_slider",
    "class"     => "",
    "icon"      => "icon-fs",
    "wrapper_class" => "clearfix",
    "controls"  => "edit_popup_delete",
    "params"    => array(
             array(
            "type" => "head",
            "class" => "",
            "heading" => null,
            "param_name" => "fshead",
        "value" => __('You can Edit all feature slider settings via options', 'js_composer')
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Style", "js_composer"),
            "param_name" => "style",
        "value" => array (
                              __('Default', 'js_composer') =>'', 
                               __('Full Width', 'js_composer')  => 'full'
                              ) ,
        ),
   
           array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'category', 
                               __('Tag', 'js_composer')  => 'tagf'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "cat",
        "value" => $options_categories ,
            "description" => __("select a category", "js_composer")
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Tag", "js_composer"),
            "param_name" => "tag",
        ),

    )
) );

//Scrolling Box 
wpb_map( array(
    "name"      => __("Scrolling Box", "js_composer"),
    "base"      => "mom_scroll_box",
    "class"     => "",
    "icon"      => "icon-sb",
    "wrapper_class" => "clearfix",
    "controls"  => "edit_popup_delete",
    "params"    => array(

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Scrolling Box Title", "js_composer"),
            "param_name" => "title",
        "value" => __('Latest Videos', 'js_composer')
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "display",
        "value" => array (
                              __('Videos', 'js_composer') =>'videos', 
                               __('Slideshows', 'js_composer')  => 'slides'
                              ) ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "count",
        "value" => range(8,200) ,
        ),  
  
   
    )
) );


//Blog posts  
wpb_map( array(
    "name"      => __("Bolg Posts", "js_composer"),
    "base"      => "mom_blog_posts",
    "class"     => "",
    "icon"      => "icon-blog",
    "wrapper_class" => "clearfix",
    "controls"  => "edit_popup_delete",
    "params"    => array(
         
        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Display", "js_composer"),
            "param_name" => "display",
        "value" => array (
                              __('Latest posts', 'js_composer') =>'', 
                              __('Category', 'js_composer') =>'category', 
                              ) ,
        ),

            array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Category", "js_composer"),
            "param_name" => "cat",
        "value" => $options_categories ,
        ),

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Number of posts", "js_composer"),
            "param_name" => "count",
        "value" => range(1,99) ,
        ),  
  

        array(
            "type" => "dropdown",
            "class" => "",
            "heading" => __("Enable Pagination", "js_composer"),
            "param_name" => "pagi",
        "value" => array('Yes', 'No') ,
        ),  
  
    )
) );

// Ad block
wpb_map( array(
    "name"      => __("Ads Block", "js_composer"),
    "base"      => "mom_ad_block",
    "class"     => "",
    "icon"      => "icon-ads",
    "wrapper_class" => "clearfix",
    "controls"  => "full",
    "params"    => array(
         
        array(
            "type" => "attach_image",
            "class" => "",
            "heading" => __("Banner Image", "js_composer"),
            "param_name" => "image",
        "value" => ''
        ),

        array(
            "type" => "textfield",
            "class" => "",
            "heading" => __("Banner URL", "js_composer"),
            "param_name" => "url",
        "value" => ''
        ),

        array(
            "type" => "textarea",
            "class" => "",
            "heading" => __("Adsenes Code", "js_composer"),
            "param_name" => "code",
        "value" => ''
        ),

    )
) );


// End Momizat Short code 

wpb_map( array(
    "name"      => __("Custom Content", "js_composer"),
    "base"      => "vc_column_text",
    "class"     => "",
    "icon"      => "icon-text",
    "wrapper_class" => "clearfix",
    "controls"  => "full",
    "params"    => array(
        array(
            "type" => "textarea_html",
            "holder" => "div",
            "class" => "",
            "heading" => __("Text", "js_composer"),
            "param_name" => "content",
            "value" => __("<p>Click edit and add your custom content.</p>", "js_composer"),
            "description" => __("Enter your content.", "js_composer")
        ),
        array(
            "type" => "textfield",
            "heading" => __("Extra class name", "js_composer"),
            "param_name" => "el_class",
            "value" => "",
            "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")
        )
    )
) );



WPBMap::layout(array('id'=>'column_12', 'title'=>'1/2'));
WPBMap::layout(array('id'=>'column_12-12', 'title'=>'1/2 + 1/2'));
WPBMap::layout(array('id'=>'column_13', 'title'=>'1/3'));
WPBMap::layout(array('id'=>'column_13-13-13', 'title'=>'1/3 + 1/3 + 1/3'));
WPBMap::layout(array('id'=>'column_13-23', 'title'=>'1/3 + 2/3'));
WPBMap::layout(array('id'=>'column_14', 'title'=>'1/4'));
WPBMap::layout(array('id'=>'column_14-14-14-14', 'title'=>'1/4 + 1/4 + 1/4 + 1/4'));
WPBMap::layout(array('id'=>'column_16', 'title'=>'1/6'));
WPBMap::layout(array('id'=>'column_11', 'title'=>'1/1'));

//deleted Shortcodes
